#include "LoginManager.h"

#include <iostream>
#include <ctime>

uint64_t LoginManager::Auth(const std::string &channel, const std::string &auth_code) {
    std::cout<< auth_code << " try to auth " << std::endl;
    static uint64_t TOKEN = std::time(nullptr);
    uint64_t token = ++TOKEN;
    //TODO save token to redis
    return token;
}